/**
 *Filename: goods_list2.scss
 *Author: xhh
 *Description: 裸钻商品列表，还没有编译的文件，用的是sass语法写
 *Date: 2018.03.30
 */
// 引入统一，清除各浏览器的默认和差异性
@import "reset.scss";
// 引入公用
@import "base.scss";
/* 裸钻主体部分 start */
.diamond-list-container {
    min-height:100%; 
    // 头部标语
    .diamond-list-slogan {
        position: relative;
        h1 {
            position: absolute;
            top: 40%;
            left: 50%;
            width: 100%;
            font-size: 4.4rem;
            letter-spacing: 20px;
            font-weight: 500;
            text-align: center;
            text-transform: uppercase;
            transform: translate(-50%,-50%);
            color: #fff;
        }
        p{
            position: absolute;
            top: 55%;
            left: 50%;
            width: 100%;
            font-size: 1rem;
            color: #fff;
            text-align: center;
            transform: translate(-50%,-50%);
        }
    }
    .diamond-choose-wrapper {  
        width: 1200px;
    }
    // 筛选头部标题
    .diamond-choose-header {
        h2 {
            font-size: 2.2rem;
            font-weight: 500;
            line-height: 2.4;
            color: #7d7d7d;
        }
    }
    // 筛选婚戒形状部分
    .diamond-shape-choose {
        h3 {
            position: relative;
            font-size: 1.2rem;
            line-height: 2.4;
            &::before {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 4rem;
                height: 2px;
                background-color: #7d7d7d;
            }
        }
    }
    // 钻石形状列表
    .diamond-shape-list {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
    .diamond-shape-item {
        flex-grow: 1;
        a {
            color: #666;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        // 形状图片
        .goods-img {
            max-width: 100%;
        }
        // 形状名称
        .goods-name {
            margin-top: .2rem;
            font-size: 1rem;
            font-weight: normal;
        }
        // 形状英文
        .goods-en {
            padding-top: .4rem;
            font-size: .875rem;
            text-transform: uppercase;
        }
        &.on {
            .goods-name {
                color: #000;
                font-weight: bold;
            }
            .goods-en {
                color: #000;
                font-weight: bold;
            }
        }
        &:hover {
            .goods-name {
                color: #000;
                font-weight: bold;
            }
            .goods-en {
                color: #000;
                font-weight: bold;
            } 
        }
    }
    // 筛选裸钻部分标题说明
    .diamond-choose-param {
        h3 {
            position: relative;
            font-size: 1.2rem;
            line-height: 2.4;
            &::before {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 4rem;
                height: 2px;
                background-color: #7d7d7d;
            }
        }
    }
    // 其他钻石参数
    .diamond-other-param {
        display: flex;
        flex-flow:wrap;
        // height: 340px;
        overflow: hidden;
        margin-top: .5rem;
        .param {
            width: 31%;
            padding-right: 2%;
            margin-top: 1rem;
            ul {
                display: flex;
                margin-top: 1.4rem;
                width: 100%;
                li {
                    border: 1px solid #aaa;
                    border-right: 0 none;
                    text-align: center;
                    flex-grow: 1;
                    line-height: 3;
                    cursor: pointer;
                    &:last-child {
                        border-right: 1px solid #aaa;
                    }
                    &:hover {
                        background-color: #bbb;
                        color: #fff;
                    }
                    &.on {
                        background-color: #bbb;
                        color: #fff;
                    }
                }
            }
        }
        .diamond-quality {
            width: 62%;
            margin-left: 5%;
            padding-right: 0;
        }
        // 彩钻筛选的内容
        .color-search-cont {
            height: 0;
            width: 100%;
            overflow: hidden;
            display: flex;
            justify-content: space-between;
        }
        // 高级搜索
        .param-search {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            border-bottom: 1px solid #cdcdcd;
            margin-top: 1.4rem;
            line-height: 2;
            font-size: .75rem;
            cursor: pointer;
            .icon-down {
                display: inline-block;
                height: 1rem;
                width: 1rem;
                background: url(../img/goods/diamond/icon_down.png) no-repeat center;
                background-size: cover;
            }
        }
        // 高级筛选的内容
        .advanced-search-cont {
            height: 0;
            overflow: hidden;
            width: 100%;
            display: flex;
            justify-content: space-between;
            flex-flow: wrap;
            margin-top: getRem(30);
        }
        
        // 颜色
        .diamond-color {
            width: 33%;
            padding-right: 0;
        }
        // 对称
        .diamond-symmetry {
            width: 33%;
            padding-right: 0;
        }
        .diamond-polish {
            width: 33%;
            padding-right: 0;
        }
        .diamond-fluore {
            width: 62%;
            padding-right: 0;
        }
        // 进度条盒子
        .slider-box {
            margin-top: 1.6rem;
            .input-value {
                display: flex;
                justify-content: space-between;
                margin-top: 1.6rem;
                width: 380px;
                div {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 4.6rem;
                    border: 1px solid #d6d6d6;
                }
                input {
                    max-width: 65%;
                    line-height: 1.6;
                    font-size: 1.1rem;
                    text-align: center;
                    border: none;
                    outline: none;
                }
            }
        }
        .slider {
            position: relative;
            width: 380px;
            height: 4px;
            background-color: #d6d6d6;
            .bar1 {
                width: 18px;
                height: 18px;
                background-color: #7d7d7d;
                position: absolute;
                top: -7px;
                left: 0;
                cursor: pointer;
            }
            .bar2 {
                width: 18px;
                height: 18px;
                background-color: #7d7d7d;
                position: absolute;
                top: -7px;
                right: 0;
                cursor: pointer;
            }
            .mask-slider {
                position: absolute;
                left: 0;
                right: 0;
                height: 100%;
                background-color: #7d7d7d;
            }
        }
    }
    // 筛选结果
    .diamond-choose-result {
        margin-top: 4rem;
        // 头部参数说明
        .result-header {
            display: flex;
            line-height: 3.2;
            font-weight: 600;
            font-size: .875rem;
            text-transform: capitalize;
            color: #000;
            background-color: #f3f4f3;
            text-align: center;
            .header-list {
                display: flex;
                width: 80%;
                span {
                    width: 10%;
                    &:first-child {
                        width: 18%;
                        padding-left: 2%;
                        text-align: left;
                    }
                }
            }
            // 最后一个元素
            .last {
                width: 20%;
            }
            
        }
        //钻石列表
        .result-content {
            position: relative;
            display: flex;
            border: 1px solid #dadada;
        }
        // 包裹列表的盒子
        .result-list-box {
            width: 80%;
            height: 750px;
            overflow-y: hidden;
            &::-webkit-scrollbar {
                display:none
            }
            // 每一颗钻石
            .result-item {
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                line-height: 6;
                font-size: .875rem;
                border-left: 4px solid #fff;
                span {
                    width: 10%;
                    text-align: center;
                    &:first-child {
                        display: flex;
                        align-items: center;
                        justify-content: space-around;
                        width: 18%;
                        padding-left:2%;
                        line-height: 1.2;
                        font-size: .875rem;
                        text-align: left;
                    }
                    // 钻石图片
                    img {
                        padding: .2rem;
                        border: 1px solid #dadada;
                    }
                    // 钻石名称
                    h3 {
                        margin-left: .4rem;
                    }
                    // 选择按钮
                    a {
                        padding: .4rem .6rem;
                        border: 1px solid #dadada;
                        color: #000;
                    }
                }
                // 钻石价格
                .price {
                    color: #999;
                }
                // li标签的下划线
                &::before {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 3%;
                    width: 94%;
                    height: 1px;
                    background-color: #dadada;
                }
                // 最后一个li没有下划线
                &:last-child {
                    &::before {
                        display: none;
                    }
                }
                &:hover {
                    transition: all .2s linear;
                    background-color: #f3f4f3;
                    cursor: pointer;
                    border-left: 4px solid #ccc;
                    a {
                        background-color: #000;
                        color: #fff;
                    }
                }
            }
        }
        // 每颗钻石的信息
        .result-choose-detail {
            position: relative;
            width: 16%;
            padding: 3% 2%;
            line-height: 3;
            &::before {
                content: '';
                position: absolute;
                top: 3%;
                left: 0;
                height: 94%;
                width: 1px;
                background-color: #dadada;
            }
            .choose-title {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 1rem;
                p {
                    display: flex;
                    flex-direction: column;
                    text-transform: capitalize;
                }
            }
            span {
                display: inline-block;
                width: 100%;
            }
            .half {
                width: 48%;
            }
            // 库存地
            .origin{
                position: relative;
                display: flex;
                flex-direction: column;
                padding-top: 1rem;
                em {
                    display: flex;
                    align-items: center;
                }
                &::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: -5%;
                    width: 110%;
                    height: 1px;
                    background-color: #dadada;
                }
            }
            // 库存地图标
            .icon-USA {
                display: inline-block;
                width: 44px;
                height: 30px;
                margin: 0 1rem;
                background: url(../img/goods/detail/icon_USA.jpg) no-repeat center;
                background-size: cover;
            }
        }
        // 底部的页码
        .diamond-pages {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 1rem 0 1rem;
            span {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 2.7rem;
                height: 2rem;
                border: 1px solid #a5a5a5;
                margin: 0 .5rem;
                line-height: 2.4rem;
                cursor: pointer;
                i {
                    background-repeat: no-repeat;
                    background-position: center;
                    background-size: cover;
                    display: inline-block;
                    width: 20px;
                    height: 20px;
                }
            }
            // 上一页按钮背景图
            .pre-page {
                i {
                    background-image: url(../img/article/list/icon_left.png);
                }
            }
            // 下一页按钮背景图
            .next-page {
                i{
                    background-image: url(../img/article/list/icon_right.png);
                }
            }
            // 数字页码
            a {
                display: inline-block;
                margin: 0 .8rem;
                line-height: 2.4rem;
                font-size: .875rem;
                color: #5d5d5d;
                &.active {
                    text-decoration: underline;
                    color: #a5a5a5;
                }
                &:hover {
                    text-decoration: underline;
                    color: #a5a5a5;
                }
            }
        }
    }
}
/* 裸钻主体部分 end */